package com.whfc.common.third.deye;

import lombok.Data;

import java.io.Serializable;

/**
 * 德业返回数据
 *
 * @author qzexing
 * @version 1.0
 * @date 2022/3/2 16:22
 */
@Data
public class DeyeResult implements Serializable {

    private String status;

    private String cmd;

    private DeyeResult() {
    }

    public DeyeResult(String status, String cmd) {
        this.status = status;
        this.cmd = cmd;
    }

    public static DeyeResult success(String cmd) {
        return new DeyeResult("0", cmd);
    }

    public static DeyeResult failed(String cmd) {
        return new DeyeResult("1", cmd);
    }

}
